<style>
    .f-news-list-author {
        color: #7d7b78;
        font-size: 1.4rem;
        margin: 0;
    }
    .f-news-list-author i {
        vertical-align: middle;
        display: inline-block;
        margin-right: 8px; 
    }
    .f-news-list-author i svg {
        width: 25px;
        vertical-align: middle;
    }
    .f-news-list-author time, .f-news-list-author span {
        color: #025ba6;
        padding: 0 8px; 
    }
</style>
<div class="card-content">
    <p class="card-title">
        <span class="card-title-category">
            <a href="<{:U('Notice/indexNews',array('sign'=>code('4',1)))}>" id='all'>
                <eq name="Think.session.lang" value="1">
                    All
                <else/>
                    所有消息
                </eq>                
            </a><a href="<{:U('Notice/indexNews',array('sign'=>code('2',1)))}>" id='news'>
                <eq name="Think.session.lang" value="1">
                    News
                <else/>
                    新闻
                </eq> 
                </a><a href="<{:U('Notice/indexNews',array('sign'=>code('1',1)))}>" id='an'>
                <eq name="Think.session.lang" value="1">
                    Announcements
                <else/>
                    公告
                </eq></a></span>
       
        <eq name='toptitle' value='Announcements'>
            <i class="center">
                <svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"
                     viewBox="0 0 19 18">
                    <path d="M2.3 12.6h5.5V8.4H2.3V12.6zM8.2 12.6h4.2V6.5H8.2V12.6zM2.3 7.9h5.5v-5.2H2.3V7.9zM8.2 6h4.2V2.7H8.2V6zM15.6 5.4V3.6h-1V2.6C14.6 1.2 13.5 0 12 0H2.6C1.2 0 0 1.2 0 2.6v9.8c0 1.4 1.2 2.6 2.6 2.6h9.5c1.4 0 2.6-1.2 2.6-2.6v-1h1V9.6h-1V8.4h1V6.6h-1V5.4H15.6zM13.6 12.4c0 0.9-0.7 1.6-1.6 1.6H2.6C1.7 14 1 13.3 1 12.4V2.6C1 1.7 1.7 1 2.6 1h9.5c0.9 0 1.6 0.7 1.6 1.6V12.4z"
                          fill="#737373"/>
                </svg>
            </i>
            <eq name="Think.session.lang" value="1">
                Announcements
            <else/>
                公告
            </eq>
        </eq>
        <eq name='toptitle' value='News'>
            <i class="center">
                <svg xmlns="http://www.w3.org/2000/svg"
                     preserveAspectRatio="xMidYMid"
                     width="22"
                     height="17">
                    <path fill="#737373"
                          d="M9.362,9.955h5.689v-1.23H9.362V9.955z M2.529,13.057h5.594V6.852H2.529V13.057z M9.362,
                              12.653h4.455v-1.23H9.362V12.653z M9.362,7.468h5.689V6.237H9.362V7.468z M17.573,
                              2.97V0H0v13.964c0,1.642,1.335,2.977,2.976,2.977h14.433c1.641,0,2.976-1.335,
                              2.976-2.977V2.97H17.573z M16.573,13.964c0,1.09-0.887,1.977-1.976,1.977H2.976C1.887,
                              15.941,1,15.054,1,13.964V1h15.573V13.964z M19.385,13.964c0,1.09-0.886,1.977-1.976,
                              1.977h-0.604c0.472-0.527,0.768-1.215,0.768-1.977V3.97h1.812V13.964z M15.052,
                              3.968H2.521v1.23h12.53V3.968z">
                    </path>
                </svg>
            </i>
            <eq name="Think.session.lang" value="1">
                News
            <else/>
                新闻
            </eq>
        </eq>
        <eq name='toptitle' value='All'>
            <i class="center">
                <svg xmlns="http://www.w3.org/2000/svg"
                     preserveAspectRatio="xMidYMid"
                     width="22"
                     height="17">
                    <path fill="#737373"
                          d="M9.362,9.955h5.689v-1.23H9.362V9.955z M2.529,13.057h5.594V6.852H2.529V13.057z M9.362,
                          12.653h4.455v-1.23H9.362V12.653z M9.362,7.468h5.689V6.237H9.362V7.468z M17.573,
                          2.97V0H0v13.964c0,1.642,1.335,2.977,2.976,2.977h14.433c1.641,0,2.976-1.335,
                          2.976-2.977V2.97H17.573z M16.573,13.964c0,1.09-0.887,1.977-1.976,1.977H2.976C1.887,
                          15.941,1,15.054,1,13.964V1h15.573V13.964z M19.385,13.964c0,1.09-0.886,1.977-1.976,
                          1.977h-0.604c0.472-0.527,0.768-1.215,0.768-1.977V3.97h1.812V13.964z M15.052,
                          3.968H2.521v1.23h12.53V3.968z">
                    </path>
                </svg>
            </i>
            <eq name="Think.session.lang" value="1">
                All
            <else/>
                所有消息
            </eq>
        </eq>
    </p>
    <p class="f-news-list-author">
        <i>
            <svg xmlns="http://www.w3.org/2000/svg"
                 preserveAspectRatio="xMidYMid"
                 width="25"
                 height="25">
                <path fill="#5CADE2"
                      d="M10.5,0.496C4.984,0.496,0.496,4.984,0.496,10.5c0,5.517,4.488,10.004,10.004,10.004c5.517,
                      0,10.004-4.487,10.004-10.004C20.504,4.984,16.017,0.496,10.5,0.496z M10.5,19.504c-4.965,
                      0-9.004-4.039-9.004-9.004S5.535,1.496,10.5,1.496s9.004,4.039,9.004,9.004S15.465,19.504,
                      10.5,19.504z M8.24,14.936l6.779-4.565L8.24,6.064V14.936z">
                </path>
            </svg>
        </i>
        Posted on
        <time><{$noInfo.add_time|substr=0,10}></time>
        by<span>
            <{$noInfo.user_id|getUsername}>
        </span>
    </p>
    <h3 class="header">
        <if condition="$noInfo['sign'] eq 3">
            <a href="<{$noInfo.id|code=1|getUrl}>" target="view_window">                
                <eq name="Think.session.lang" value="1">
                    <{$noInfo.en_title}>
                <else/>
                    <{$noInfo.title}>
                </eq>
            </a>
        <else/>
            <eq name="Think.session.lang" value="1">
                <{$noInfo.en_title}>
            <else/>
                <{$noInfo.title}>
            </eq>
        </if>
    </h3>
    <p class="f-notice-info">
        <if condition="$noInfo['sign'] eq 3">
            <eq name="Think.session.lang" value="1">
                <{$noInfo.en_content|getText}>
            <else/>
                <{$noInfo.content|getText}>
            </eq>
            <a href="<{$noInfo.id|code=1|getUrl}>" target="view_window">Read Now</a>
        <else/>
        <eq name="Think.session.lang" value="1">
            <{$noInfo.en_content}>
        <else/>
            <{$noInfo.content}>
        </eq>            
        </if>
    </p>
    <neq name="noInfo['id']" value=''>        
        <div class="right-align thumb-up">
            <span>
                <em id='zan'>
                    <svg xmlns="http://www.w3.org/2000/svg" width="30" viewBox="0 0 795 795">
                        <path d="M768.3 302.7c-39-50.3-114.9-47-200.2-45.1 1.8-20.3 3.5-40.7 5.3-61 16-99.5-5.1-180.1-86.2-194.9 -20.1-3.7-45.8-1-61 5.3 -40.2 16.6-52.9 55.5-61 104.8 -4.8 29.4 3.9 62.9-2.7 88.8 -8.3 33-33.6 57.5-59.7 72.9 -31.4 18.6-71.9 30-114 37.1 -67.3 11.4-159.8-23-183 31.8 -10.2 24.1-4 70.9-4 102.1 0 79.1 0 158.2 0 237.4 0 45.1-3.2 83.2 22.5 102.1 25.7 18.9 140.1 9.7 185.6 9.3 0-147.2 0-294.4 0-441.6 86.8-4.6 176.2-66.3 196.2-139.2 15.1-55.1-12.1-141.6 35.8-163.1 101-45.4 94.5 104.7 83.5 173.7 -2.7 26.5-5.3 53-8 79.6 0 1.3 0 2.7 0 4 70.9-2.7 180.6-22 216.1 25.2 19.6 26 20.2 77.2 9.3 114 -20.7 70.2-92.3 246.7-139.2 283.8 -28 22.2-48.7 7.5-91.5 14.6 -77.8 1.3-155.6 2.7-233.4 4 0 15 0 30.1 0 45.1 105.2-1.3 210.4-2.7 315.6-4 21.2-6.2 48.4-31.5 61-47.7 20.1-25.9 30.7-58.3 47.7-87.5 33.9-58.3 64.1-127.4 83.5-197.6C802 402 796 338.4 768.3 302.7L768.3 302.7zM165 748.2c-37.6 0-75.1 0-112.7 0C39.5 727.4 47 672.7 47 642.1c0.4-94.1 0.9-188.3 1.3-282.4 17.6-10.3 89.1-4.3 116.7-4C165 486.5 165 617.4 165 748.2L165 748.2z"/>
                    </svg>
                </em>
            </span><span id='zan_num'><{$zan}></span>
        </div>
    </neq>
    <input type="hidden" name='group_id' value='<{$noInfo.id}>'/>
</div>
<script>
    var url  ='<?php echo substr($_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"],strripos($_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"],"/"),3);?>';
    
    if(url=="/Vw"){
        $("#all").addClass("on");
    }else if(url=="/UQ"||url=="/Mw"){
        $("#news").addClass("on");
    }else{
        $("#an").addClass("on");
    }
    
    $("#zan").mouseover(function(){
        $(this).css("cursor","pointer");
    }).click(function(){
        var group_id=$("input[name='group_id']").val();
        $.post("__MODULE__/Notice/ajaxZan",{group_id:group_id},function(data){
            if(!data){
                if("<?php echo $_SESSION['lang'];?>"=='1'){
                    alert("Has been like,give the opportunity to others.");
                }else{
                    alert("已经赞过了，把机会留给别人吧");
                }                
            }else{
                $("#zan_num").html(data);
                
                if("<?php echo $_SESSION['lang'];?>"=='1'){
                    alert("Point like success,thank you for your support");
                }else{
                    alert("点赞成功，谢谢你的支持");
                } 
            }
        },"Html");
    });
</script>